define(function(require, exports, module) {

	//通过 exports 对外提供接口
	exports.init = function(){

		Main.loadCommonJS();
		Main.loadInitPage();

		window.onhashchange = function(){//监听localhash变化

			module.tn.initPage(window.location.href);
			window.scroll(0, 0);
		}
	}

	var Main = {

		loadInitPage: function(){

			var URI = window.location.href;
			module.tn.initPage(URI);
		},
		loadCommonJS: function(){
			require('TN');
			require('bootstrap');
			require('matrix');
		}
	}
});
